define(function (require, exports, module) {
	
	var TypewriterAnnotToolHandler = require("./TypewriterAnnotToolHandler.js");
	var TypewriterAnnotHandler = require("./TypewriterAnnotHandler.js");
	require("./AnnotHandleManager.js");
    WebPDF.TYPEWRITER_PLUGIN_NAME = "TypewriterAnnot";




	WebPDF.TypewriterAnnotPlugin = function (pReaderApp,annotPlugin) {
        var    _readerApp = pReaderApp,
        	   _annotPlugin = annotPlugin,
        	  _annotHandlerArray = [],
              _self = this;

        this.getPluginName = function () {
            return  WebPDF.TYPEWRITER_PLUGIN_NAME;
        };
        this.onRegister = function () {
           
        };
        this.init = function () {
        	
        };
        this.PIUnload = function () {
        };

        this.getReaderApp = function () {
            return _readerApp;
        };
        
    };

    exports.createPlugin = function (pReaderApp) {
    	var annotPlugin = pReaderApp.getPluginByName(WebPDF.BASEANNOT_PLUGIN_NAME);
        var pTypewriterAnnotPlugin = new WebPDF.TypewriterAnnotPlugin(pReaderApp,annotPlugin);
        return pTypewriterAnnotPlugin;
    };
	
});